package op;

public class Rect {
	public int leftmost;
	public int rightmost;
	public int upmost;
	public int downmost;
	
	Rect(int inLeftmost, int inRightmost, int inUpmost, int inDownmost){
		leftmost = inLeftmost;
		rightmost = inRightmost;
		upmost = inUpmost;
		downmost = inDownmost;
	}
	
	public int getHeight(){
		return downmost-upmost;
	}
	
	public int getWidth(){
		return rightmost - leftmost;
	}
}
